'use strict';

const BaseController = require('../sys/base');

class AppController extends BaseController {

  async login() {
    const { ctx } = this;
    const requestData = ctx.request.body;
    let result = await ctx.service.app.user.login(requestData);
    this.success(result);
  }

  async monitorPartners() {
    const { ctx } = this;
    const requestData = ctx.request.query;
    let result = await ctx.service.app.user.monitorPartners(requestData);
    this.success(result);
  }

}

module.exports = AppController;    
